﻿@using System.Data;
@using ZoomLa.BLL.Helper
@model ZoomLa.SQLDAL.SQL.PageSetting
@{
    Model.cols = 5;
}

<div id="EGV">
    <table class="table table-striped table-bordered">
        <tr>
            <td width="5%;">选择</td>
            <td width="40%">标题</td>
            <td>发件人</td>
            <td width="20%">发送日期</td>
            <td width="20%">操作</td>
        </tr>
        @foreach (DataRow dr in Model.dt.Rows)
        {
            <tr>
                <td><input type="checkbox" name="idchk" value="@dr["msgid"]" /></td>
                <td>@dr["Title"]@dr["ReadUser"]</td>
                <td>@dr["UserName"]</td>
                <td>@DateHelper.ToDate(dr["PostDate"])</td>
                <td>
                    <a href="MessageRead?read=1&id=@dr["msgid"]"><i class="fa fa-eye"></i>阅读</a>
                    <a href="javascript:;" onclick="mvcpage.del({ ids: '@dr["MsgID"]', url: 'message_del', confirm: '你确定将该数据彻底删除吗' });"><i class="fa fa-trash">删除</i></a>
                </td>
            </tr>
        }
        @Html.Partial("_page", Model)
    </table>
</div>